import request from '@/utils/request'

// 查询护工陪护记录列表
export function listCarerecord(query) {
  return request({
    url: '/system/carerecord/list',
    method: 'get',
    params: query
  })
}

// 查询护工陪护记录详细
export function getCarerecord(careRecordId) {
  return request({
    url: '/system/carerecord/' + careRecordId,
    method: 'get'
  })
}

// 新增护工陪护记录
export function addCarerecord(data) {
  return request({
    url: '/system/carerecord',
    method: 'post',
    data: data
  })
}

// 修改护工陪护记录
export function updateCarerecord(data) {
  return request({
    url: '/system/carerecord',
    method: 'put',
    data: data
  })
}

// 删除护工陪护记录
export function delCarerecord(careRecordId) {
  return request({
    url: '/system/carerecord/' + careRecordId,
    method: 'delete'
  })
}
